{% extends '_layout/person_profile.html' %}
{% load i18n %}
{% load staticfiles %}
{% block pageTitle %}
  {% trans 'My Data' %}
{% endblock %}
{% block pageHeadExtra %}
  <link href="{% static 'css/storage/my_data.css' %}" rel="stylesheet">
{% endblock %}

{% block content_select %}
  <ul class="list-inline" >
    <li  class="active">
      <a href="#data" data-toggle="tab">{% trans 'Datas' %}</a>
    </li>
      <li>
        <a href="#templates" data-toggle="tab">{% trans 'Templates' %}</a>
      </li>
        <li>
        <a href="#dataset" data-toggle="tab">{% trans 'Dataset' %}</a>
      </li>
  </ul>
{% endblock %}

{% block mainContent %}
{#  <div id="data" class="tab-pane active">#}
{#    <p class="text-right">#}
{#      <span class="btn-group">#}
{#        <a role="button" class="btn btn-default" href="{% url 'search:search' %}">#}
{#          <i class="fa fa-wpexplorer"></i>{% trans 'Explore' %}#}
{#        </a>#}
{#        <a role="button" class="btn btn-default" href="{% url 'storage:add_data' %}">#}
{#          <i class="fa fa-plus"></i>{% trans 'Add New' %}#}
{#        </a>#}
{#      </span>#}
{#    </p>#}
{#    <div id="dm-scope"></div>#}
{#    <div id="dm-pagination-scope" class="text-center"></div>#}
{#  </div>#}

{#  {% if request.user.is_mge_admin %}#}

    <div id="data" class="tab-pane active">
        <p class="text-right">
          <span class="btn-group">
{#            <a role="button" class="btn btn-default" href="{% url 'search:search' %}">#}
{#              <i class="fa fa-wpexplorer"></i>{% trans 'Explore' %}#}
{#            </a>#}
            <a role="button" class="btn btn-default" href="{% url 'storage:add_data' %}">
              <i class="fa fa-plus"></i>{% trans 'Add New' %}
            </a>
          </span>
        </p>
        <div id="dm-scope"></div>
        <div id="dm-pagination-scope" class="text-center"></div>
    </div>

    <div id="templates" class="tab-pane">
        <p class="text-right">
            <span class="btn-group">
                <a role="button" class="btn btn-default" href="{% url 'storage:template' %}">
                    <i class="fa fa-plus"></i>{% trans 'Add New' %}
                </a>
            </span>
        </p>
        <div id="t-scope"></div>
        <div id="t-pagination-scope" class="text-center"></div>
    </div>
   <div id="dataset" class="tab-pane">
    <p class="text-right">
      <span class="btn-group">
        <a role="button" class="btn btn-default" href="{% url 'storage:upload_dataset' %}">
          <i class="fa fa-upload"></i>{% trans 'Upload' %}
        </a>
      </span>
    </p>
{#    <div class="task-list">#}
{#      <div class="horizontal statistic small">#}
{#        <div id="dataset-count" class="value">0</div>#}
{#        <div class="label">{% trans 'Results' %}</div>#}
{#        <div class="sort">#}
{#          <ul class="list-inline">#}
{#            <li><a role="button" id="dataset-time-forward" title="{% trans 'Ascending' %}"><i class="fa fa-sort-amount-asc"></i></a></li>#}
{#            <li><a role="button" id="dataset-time-reverse" title="{% trans 'Descending' %}"><i class="fa fa-sort-amount-desc"></i></a></li>#}
{#          </ul>#}
{#        </div>#}
{#      </div>#}
       <div id="ds-scope"></div>
      <div id="ds-pagination-scope" class="text-center"></div>
  </div>


{% endblock %}

{#  {% endif %}#}
{#{% endblock %}#}

{% block pageFootExtra %}
  <script src="{% static 'js/storage/my-data.js' %}"></script>
{% endblock %}

